package com.zhentao.tot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhentao.tot.mapper.WmChannelMapper;
import com.zhentao.tot.domain.WmChannel;
import com.zhentao.tot.service.IWmChannelService;

/**
 * 频道信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
@Service
public class WmChannelServiceImpl implements IWmChannelService 
{
    @Autowired
    private WmChannelMapper wmChannelMapper;

    /**
     * 查询频道信息
     * 
     * @param id 频道信息主键
     * @return 频道信息
     */
    @Override
    public WmChannel selectWmChannelById(Integer id)
    {
        return wmChannelMapper.selectWmChannelById(id);
    }

    /**
     * 查询频道信息列表
     * 
     * @param wmChannel 频道信息
     * @return 频道信息
     */
    @Override
    public List<WmChannel> selectWmChannelList(WmChannel wmChannel)
    {
        return wmChannelMapper.selectWmChannelList(wmChannel);
    }

    /**
     * 新增频道信息
     * 
     * @param wmChannel 频道信息
     * @return 结果
     */
    @Override
    public int insertWmChannel(WmChannel wmChannel)
    {
        return wmChannelMapper.insertWmChannel(wmChannel);
    }

    /**
     * 修改频道信息
     * 
     * @param wmChannel 频道信息
     * @return 结果
     */
    @Override
    public int updateWmChannel(WmChannel wmChannel)
    {
        return wmChannelMapper.updateWmChannel(wmChannel);
    }

    /**
     * 批量删除频道信息
     * 
     * @param ids 需要删除的频道信息主键
     * @return 结果
     */
    @Override
    public int deleteWmChannelByIds(Integer[] ids)
    {
        return wmChannelMapper.deleteWmChannelByIds(ids);
    }

    /**
     * 删除频道信息信息
     * 
     * @param id 频道信息主键
     * @return 结果
     */
    @Override
    public int deleteWmChannelById(Integer id)
    {
        return wmChannelMapper.deleteWmChannelById(id);
    }
}
